<volist name="book_list" id="val">
<if condition="$val['status'] egt 0" >
<div class="bought_list">
    <div class="goods_img"><img src="{$val.img}" width="80" height="100" style="margin-left:5px"/></div>
    <div class="goods_info">
        <a href="{:U('detail',array('id'=>$val['id']))}" class="cont">{$val.name}</a>
        <div class="goods_time text">{$val.introduce}</div>
        <div class="goods_speed"></div>
    </div>
</div>
</if>
</volist>
<script>
    $(function(){
        var textLeng = 15;
        for(var i=0;i <$('.txt').length;i++){
            var str= $('.txt').eq(i).html();
            if(str.length > textLeng ){
                $('.txt').eq(i).html(str.substring(0,13 )+".....");
            }
        }
    });
</script>